/*
package com.longcai.mq.sender;

import com.longcai.config.rabbitmq.ExchangeConfig;
import com.longcai.config.rabbitmq.RabbitMqConfig;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.amqp.rabbit.support.CorrelationData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

*/
/**
 * 消息发送  生产者1
 *
 * @author zhuzhe
 * @date 2018/5/25 14:28
 * @email 1529949535@qq.com
 *//*

@Slf4j
@Component
public class FirstSender {

    @Autowired
    private RabbitTemplate rabbitTemplate;

    @Autowired
    private ExchangeConfig exchangeConfig;

    */
/**
     * 发送消息
     *
     * @param uuid
     * @param message 消息
     *//*

    public void send(String uuid, Object message) {
        CorrelationData correlationId = new CorrelationData(uuid);
        rabbitTemplate.convertAndSend(exchangeConfig.EXCHANGE_01, RabbitMqConfig.ROUTING_KEY_1,
                message, correlationId);
        log.info("send:{}", message);
    }
}*/
